package com.springboot.mapper;

import com.springboot.model.DoctorFieldForm;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
@Mapper
public interface DoctorFieldFormMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DoctorFieldForm record);

    int insertSelective(DoctorFieldForm record);

    DoctorFieldForm selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DoctorFieldForm record);

    int updateByPrimaryKey(DoctorFieldForm record);

    //通过领域field获得医生id列表
    ArrayList<DoctorFieldForm> selectByField(String field);

    //通过医生id查找医生领域列表
    ArrayList<DoctorFieldForm> selectByDoctorId(Integer doctorId);

    //查找所有医生领域列表
    ArrayList<DoctorFieldForm> selectAll();

    //通过医生id查找医生领域
    DoctorFieldForm selectDoctorFieldById(Integer doctorId);
}